package com.yeyks.consumer.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户数据统计
 * </p>
 *
 * @author shuai
 * @since 2019-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserDataStat对象", description="用户数据统计")
public class UserDataStat implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("date")
    private Date date;

    @ApiModelProperty(value = "页面浏览量或点击量，用户每刷新一次即被计算一次，可以多次累计")
    @TableField("pv")
    private Integer pv;

    @ApiModelProperty(value = "访问您网站的一台电脑客户端为一个访客，一个UV可以用很多PV，一个PV也只能对应一个IP")
    @TableField("uv")
    private Integer uv;

    @ApiModelProperty(value = "活动分享次数")
    @TableField("activity_share_count")
    private Integer activityShareCount;

    @ApiModelProperty(value = "活动新增用户数")
    @TableField("new_user_count")
    private Integer newUserCount;

    @ApiModelProperty(value = "站内页面访问量")
    @TableField("activity_in_count")
    private Integer activityInCount;

    @ApiModelProperty(value = "活动页面访问量")
    @TableField("activity_visit_count")
    private Integer activityVisitCount;

    @TableField("activity_id")
    private Integer activityId;

    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String DATE = "date";

    public static final String PV = "pv";

    public static final String UV = "uv";

    public static final String ACTIVITY_SHARE_COUNT = "activity_share_count";

    public static final String NEW_USER_COUNT = "new_user_count";

    public static final String ACTIVITY_IN_COUNT = "activity_in_count";

    public static final String ACTIVITY_VISIT_COUNT = "activity_visit_count";

    public static final String ACTIVITY_ID = "activity_id";

    public static final String CREATE_TIME = "create_time";

}
